// package com.yunkeji.config.db;
//
// import cn.hutool.core.date.DatePattern;
// import cn.hutool.core.date.DateUtil;
// import org.apache.shardingsphere.sharding.api.sharding.standard.PreciseShardingValue;
// import org.apache.shardingsphere.sharding.api.sharding.standard.RangeShardingValue;
// import org.apache.shardingsphere.sharding.api.sharding.standard.StandardShardingAlgorithm;
//
// import java.sql.Timestamp;
// import java.util.ArrayList;
// import java.util.Collection;
//
/// ** 数据表分片 */
// public class MonthShardingAlgorithm implements StandardShardingAlgorithm {
//    @Override
//    public String doSharding(Collection collection, PreciseShardingValue preciseShardingValue) {
//        String format =
//                DateUtil.format(
//                        (Timestamp) preciseShardingValue.getValue(),
//                        DatePattern.SIMPLE_MONTH_PATTERN);
//        return preciseShardingValue.getLogicTableName() + "_" + format;
//    }
//
//    @Override
//    public Collection<String> doSharding(
//            Collection collection, RangeShardingValue rangeShardingValue) {
//
//        return new ArrayList<>();
//    }
// }
